package com.java.star.mall.front.pojo.entity;

import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 订单实体类
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class Order extends Base implements Serializable {

    private static final long serialVersionUID = -2803661125825315467L;

    //id
    private Integer id;

    //用户id
    private Integer userId;

    //订单号
    private String orderSn;

    //应付金额
    private BigDecimal payAmount;

    //物流单号
    private String deliverySn;

    //收货人名
    private String receiverName;

    //收货人电话
    private String receiverPhone;

    //省份
    private String receiverProvince;

    //城市
    private String receiverCity;

    //地区
    private String receiverDistrict;

    //街道
    private String receiverTown;

    //地标
    private String receiverLandmark;

    //订单状态 [0待付款，1待发货，2已发货，3已完成，4已评价，5已关闭]
    private String status;

    //支付时间
    private Date paymentTime;

    //收货时间
    private Date receiveTime;

    //评论时间
    private Date commentTime;
}
